<template>
	<div class="top">
		<image src="/static/icon/play.png" mode=""></image>
	</div>
	<div class="center">
		<p class="text">课程大纲</p>
	</div>
	<div class="botton">
		<div style="width: 100%; height: 100%; overflow-y: auto;">
			<ul>
				<li class="syllabusLi" v-for="item in syllabuslist" :key="item.id">
					<image src="/static/logo.png"></image>
					<span class="span">{{ item.name }}</span><span class="span">{{ item.teacher }}</span><span
						class="span">{{ item.time }}</span>
					<image src="/static/icon/play.png" @click="toRegister"></image>
					<p class="p" v-if="item.member">会员</p>
				</li>
			</ul>
		</div>
	</div>
</template>

<script setup>
	import {
		ref
	} from "vue";
	const syllabuslist = ref([{
			id: 1,
			name: '课程1',
			teacher: '开老师',
			time: '13:16',
			member: false
		},
		{
			id: 2,
			name: '课程1',
			teacher: '开老师',
			time: '13:16',
			member: false
		},
		{
			id: 3,
			name: '课程1',
			teacher: '开老师',
			time: '13:16',
			member: false
		},
		{
			id: 4,
			name: '课程1',
			teacher: '开老师',
			time: '13:16',
			member: true
		},
		{
			id: 5,
			name: '课程1',
			teacher: '开老师',
			time: '13:16',
			member: true
		},
		{
			id: 6,
			name: '课程1',
			teacher: '开老师',
			time: '13:16',
			member: true
		},
		{
			id: 7,
			name: '课程1',
			teacher: '开老师',
			time: '13:16',
			member: true
		},
		{
			id: 8,
			name: '课程1',
			teacher: '开老师',
			time: '13:16',
			member: true
		},
		{
			id: 9,
			name: '课程1',
			teacher: '开老师',
			time: '13:16',
			member: true
		},
		{
			id: 10,
			name: '课程1',
			teacher: '开老师',
			time: '13:16',
			member: true
		},
		{
			id: 11,
			name: '课程1',
			teacher: '开老师',
			time: '13:16',
			member: true
		}
	])
</script>

<style scoped>
	.top {

		width: 100%;
		height: 30vh;
		display: grid;
		place-items: center;
		background-color: black;
	}

	.top image {
		width: 50px;
		height: 50px;
	}

	.center {
		width: 100%;
		height: 10vh;
		display: grid;
		place-items: center;
	}

	.text {
		font-size: 20px;
		border-bottom: 3px solid #00b9ff;
		height: 30px;
		color: #00b9ff;
	}

	.botton {
		width: 100%;
		height: 60vh;
		overflow-y: auto;
	}

	.syllabusLi {
		border: 2px solid #0066ff;
		border-bottom: 0px;
		width: 99%;
		height: 50px;
		text-align: left;
		display: flex;
	}

	.syllabusLi image {
		width: 50px;
		height: 50px;
	}

	.span {
		padding-left: 5px;
		padding-top: 15px;
		width: 21%;
	}

	.p {
		width: 25px;
		height: 15px;
		background-color: #ff5e8b;
		font-size: 10px;
		margin-top: 2px;
		margin-left: 5px;
		padding-left: 3px;
		padding-top: 1px;
		border-radius: 4px;
		color: white;
	}
</style>